function [F,G] = imageanalysis(filepath);


F = zeros(1600,1200);
G = zeros(1600,1200);

for i = 1:100
    frames = double(qcammex('getFrames',filepath,i));
    F = 0.01 * frames + F;
end

for i = 101:200
    frames = double(qcammex('getFrames',filepath,i));
    G = 0.01 * frames + G;
end

figure;imagesc(F);title('before');
figure;imagesc(G);title('after');
figure;imagesc((G-F)./F);title('deltaF/F');